package io.adrainty.demo.seata.account.models.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>AccountBO</p>
 *
 * @author AdRainty
 * @version V1.0.0
 * @description AccountBO
 * @since 2025/8/20 11:52:22
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("tab_account")
public class AccountBO implements Serializable {

    @Serial
    private static final long serialVersionUID = -2908955955507292840L;

    @TableId
    private Long id;

    @TableField("account_name")
    private String accountName;

    @TableField("account_no")
    private String accountNo;

    @TableField("account_balance")
    private BigDecimal accountBalance;

    @TableField("frozen_balance")
    private BigDecimal frozenBalance;

}
